﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TDT_Project
{
    public partial class XEMDIEM : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
                loadControl();
        }
        protected void loadControl()
        {
            if (Request.QueryString["pages"] != null)
            {//chitiettin
                if (Request.QueryString["pages"] == "xemdiem")
                {
                    Control view = new Control();
                    view = Page.LoadControl("Controller/XemDiemPhuHuynh.ascx");
                    view.ID = "xemdiem";
                    PH_Main.Controls.Clear();
                    PH_Main.Controls.Add(view);
                }
                if (Request.QueryString["pages"] == "tkb")
                {
                    Control view = new Control();
                    view = Page.LoadControl("Controller/uc_tbk.ascx");
                    view.ID = "tkb";
                    PH_Main.Controls.Clear();
                    PH_Main.Controls.Add(view);
                }
                if (Request.QueryString["pages"] == "GV_DAY")
                {
                    Control view = new Control();
                    view = Page.LoadControl("Controller/UC_GV_GIANGDAY.ascx");
                    view.ID = "GV_DAY";
                    PH_Main.Controls.Clear();
                    PH_Main.Controls.Add(view);
                }
            }
        }
    }
}